package lobby.component.combobox
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.text.TextField;
	
	/**
	 * ...
	 * @author Bamboo
	 */
	public class ItemCombobox extends MovieClip
	{
		public var txtTf:TextField;
		public var itmeRoll:MovieClip;
		public var icon:MovieClip;
		
		public function ItemCombobox()
		{
			this.gotoAndStop("out");
			txtTf.mouseEnabled = false;
			this.buttonMode = true;
			this.itmeRoll.addEventListener(MouseEvent.ROLL_OVER, hldEvent);
			this.itmeRoll.addEventListener(MouseEvent.ROLL_OUT, hldEvent);
		}
		
		private function hldEvent(e:MouseEvent):void
		{
			if (e.type == MouseEvent.ROLL_OVER)
			{
				this.gotoAndStop("over");
			}
			else if (e.type == MouseEvent.ROLL_OUT)
			{
				this.gotoAndStop("out");
			}
			else if (e.type == MouseEvent.CLICK)
			{
				
			}
		}
		
		public function iniText(value:String):void
		{
			this.txtTf.text = value;
		}
	}

}